package research.domain;

import java.util.Date;
import java.util.Set;

import research.entity.Entity;
import research.entity.EntityType;

public final class Production extends Entity {
	private String name;
	private String description;
	private String comment;
	private Date start;
	private Date stop;
	private Research research;
	private Calander calander;
	private Preparation preparation;
	private Set<Sample> samples;

	public Production() {
		super(EntityType.Production);
	}

	@Override
	public String getDisplayName() {
		return this.getName();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}
	
	public Date getStart() {
		return start;
	}

	public void setStart(Date start) {
		this.start = start;
	}

	public Date getStop() {
		return stop;
	}

	public void setStop(Date stop) {
		this.stop = stop;
	}

	public Research getResearch() {
		return research;
	}

	public void setResearch(Research research) {
		this.research = research;
	}

	public Calander getCalander() {
		return calander;
	}

	public void setCalander(Calander calander) {
		this.calander = calander;
	}

	public Preparation getPreparation() {
		return preparation;
	}

	public void setPreparation(Preparation preparation) {
		this.preparation = preparation;
	}
	
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
	public Set<Sample> getSamples() {
		return samples;
	}

	public void setSamples(Set<Sample> samples) {
		this.samples = samples;
	}

	public static Production getNew() {
		Production sam = new Production();
		sam.setName("");
		sam.setComment("");
		sam.setDescription("");
		sam.setStart(new Date());
		sam.setStop(new Date());
		return sam;
	}

}
